local hx__shanjia = fk.CreateSkill {
  name = "hx__shanjia",
}

hx__shanjia:addEffect(fk.EventPhaseStart, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(hx__shanjia.name) and player.phase == Player.Play
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(3, hx__shanjia.name)
    local targets = table.filter(player.room:getOtherPlayers(player), function(p)
      return player:canUseTo(Fk:cloneCard("slash"), p)
    end)
    player.room:askToUseVirtualCard(player, {
      name = {"slash"},
      skill_name = hx__shanjia.name,
      prompt = "#hx__shanjia-slash",
      cancelable = false,
      extra_data = {
        bypass_times = true,
        extraUse = true,
      }
    })
  end,
})

return hx__shanjia